package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoTariningDoor;
import com.muyu.danmo.mapper.DanmoTariningDoorMapper;
import com.muyu.danmo.service.IDanmoTariningDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 培训班门头照片Service业务层处理
 *
 * @author yangle
 * @date 2024-10-21
 */
@Service
public class DanmoTariningDoorServiceImpl implements IDanmoTariningDoorService
{
    @Autowired
    private DanmoTariningDoorMapper danmoTariningDoorMapper;

    /**
     * 查询培训班门头照片
     *
     * @param id 培训班门头照片主键
     * @return 培训班门头照片
     */
    @Override
    public DanmoTariningDoor selectDanmoTariningDoorById(Long id)
    {
        return danmoTariningDoorMapper.selectDanmoTariningDoorById(id);
    }

    /**
     * 查询培训班门头照片列表
     *
     * @param danmoTariningDoor 培训班门头照片
     * @return 培训班门头照片
     */
    @Override
    public List<DanmoTariningDoor> selectDanmoTariningDoorList(DanmoTariningDoor danmoTariningDoor)
    {
        return danmoTariningDoorMapper.selectDanmoTariningDoorList(danmoTariningDoor);
    }

    /**
     * 新增培训班门头照片
     *
     * @param danmoTariningDoor 培训班门头照片
     * @return 结果
     */
    @Override
    public int insertDanmoTariningDoor(DanmoTariningDoor danmoTariningDoor)
    {
        return danmoTariningDoorMapper.insertDanmoTariningDoor(danmoTariningDoor);
    }

    /**
     * 修改培训班门头照片
     *
     * @param danmoTariningDoor 培训班门头照片
     * @return 结果
     */
    @Override
    public int updateDanmoTariningDoor(DanmoTariningDoor danmoTariningDoor)
    {
        return danmoTariningDoorMapper.updateDanmoTariningDoor(danmoTariningDoor);
    }

    /**
     * 批量删除培训班门头照片
     *
     * @param ids 需要删除的培训班门头照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTariningDoorByIds(Long[] ids)
    {
        return danmoTariningDoorMapper.deleteDanmoTariningDoorByIds(ids);
    }

    /**
     * 删除培训班门头照片信息
     *
     * @param id 培训班门头照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTariningDoorById(Long id)
    {
        return danmoTariningDoorMapper.deleteDanmoTariningDoorById(id);
    }
}
